//PersonpTest.java
package com.ylaihui.oop2;

public class PersonpTest {
	public static void main(String[] args) {
		Teacher t = new Teacher();
		//t.age = 40;  // private age : The field Personp.age is not visible
		t.setAge(40);
		System.out.println(t.getAge());
		
		t.eat();
		t.name = "John";
		System.out.println(t.getName());
		
		t.show();
		// 继承间接父类的方法
		t.breath();
	}
}
